import type { QuestionCategoryResponse, AddCategoryRequest, AddCategoryResponse } from '../models/questionCategoryModel';
import instance from '../utils/request';

// 获取题目分类列表
export const getQuestionCategoryList = (): Promise<QuestionCategoryResponse> => {
  return instance.get('/question/categorys');
};

// 添加题目分类
export const addQuestionCategory = (data: AddCategoryRequest): Promise<AddCategoryResponse> => {
  return instance.post('/question/category/add', data);
};
